//package com.learn.springlearn.task;
//
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.scheduling.annotation.Scheduled;
//import org.springframework.stereotype.Component;
//
//import java.time.LocalDateTime;
//import java.time.format.DateTimeFormatter;
//
//@Component
//@Slf4j
//public class LogTask {
//
//
//    @Scheduled(cron = "0 0 0/1 * * ?")
//    public void log() {
//        log.info("定时任务执行中{}", LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")));
//    }
//}
